package com.sabastian.springframework.beans.factory.support;

import com.sabastian.springframework.beans.BeansException;
import com.sabastian.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @author Ciel Phantomhive
 * @description 实例化策略接口
 * @date 2022/12/19 20:20
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}
